import request from '@/utils/request'
// 邀请有礼管理列表
export function queryInviteCampaignList(params) {
  return request({
      url: '/admin/inviteCampaign/list',
      method: 'post',
      data: {
          ...params
      }
  })
}

// 邀请有礼活动详情
export function queryDetailInviteCampaign(query) {
  return request({
      url: '/admin/inviteCampaign/queryDetail',
      method: 'get',
      params: query
  })
}

// 邀请有礼活动添加
export function addInviteCampaign(params) {
  return request({
      url: '/admin/inviteCampaign/add',
      method: 'post',
      data: {
          ...params
      }
  })
}

// 邀请有礼活动编辑
export function editInviteCampaign(params) {
  return request({
      url: '/admin/inviteCampaign/edit',
      method: 'post',
      data: {
          ...params
      }
  })
}

// 查询启用状态的优惠券
export function getQueryCouponBatch(params) {
  return request({
      url: '/admin/inviteCampaign/queryCouponBatch',
      method: 'post',
      data: {
          ...params
      }
  })
}

// SPU列表(选择列表)
export function getListForSelect(query) {
  return request({
      url: '/admin/spu/listForSelect',
      method: 'get',
      params: query
  })
}

// 充值有礼
// 查询充值活动列表
export function getActivityList(params) {
  return request({
      url: '/admin/activity/list',
      method: 'post',
      data: {
        ...params
      }
  })
}
// 获取充值活动详细信息
export function getActivityInfo(query) {
  return request({
      url: '/admin/activity/getInfo',
      method: 'get',
      params: query
  })
}
// 新增充值活动
export function addActivity(params) {
  return request({
      url: '/admin/activity/add',
      method: 'post',
      data: {
        ...params
      }
  })
}
// 编辑充值活动
export function editActivity(params) {
  return request({
      url: '/admin/activity/edit',
      method: 'post',
      data: {
        ...params
      }
  })
}
// 禁用充值活动
export function disableActivity(params) {
  return request({
      url: '/admin/activity/disable',
      method: 'post',
      data: {
        ...params
      }
  })
}

// 启用充值活动
export function enableActivity(params) {
  return request({
      url: '/admin/activity/enable',
      method: 'post',
      data: {
        ...params
      }
  })
}

// 删除充值活动
export function removeActivity(params) {
  return request({
      url: '/admin/activity/remove',
      method: 'post',
      data: {
        ...params
      }
  })
}